<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/12/10
  Time: 13:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<% request.setAttribute("ctx", request.getContextPath()); %>
<!-- bootstrap css -->
<link href="${ctx}/static/css/bootstrap.min.css" rel="stylesheet">
<!-- 小图标 css -->
<link href="${ctx}/static/css/materialdesignicons.min.css" rel="stylesheet">
<!-- 下拉列表 css -->
<link href="${ctx}/static/js/bootstrap-select/bootstrap-select.css" rel="stylesheet">
<!-- 表格 css -->
<link href="${ctx}/static/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
<!-- 确认框 css -->
<link href="${ctx}/static/js/jquery-confirm/jquery-confirm.min.css" rel="stylesheet">
<!-- 页面 css -->
<link href="${ctx}/static/css/style.min.css" rel="stylesheet">
<!-- 动画 css -->
<link href="${ctx}/static/css/animate.min.css" rel="stylesheet">
<!-- 日期选择器 css-->
<link rel="stylesheet" type="text/css" href="${ctx}/static/js/bootstrap-datepicker/bootstrap-datepicker3.min.css">
<!-- 时间日期选择器 css-->
<link rel="stylesheet" type="text/css"
      href="${ctx}/static/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css">

<!-- jquery js -->
<script src="${ctx}/static/js/jquery.min.js" type="text/javascript"></script>
<!-- 显示弹窗，提示，下拉菜单 js -->
<script src="${ctx}/static/js/popper.min.js" type="text/javascript"></script>
<!-- bootstrap js -->
<script src="${ctx}/static/js/bootstrap.min.js" type="text/javascript"></script>
<!-- 确认框 js -->
<script src="${ctx}/static/js/jquery-confirm/jquery-confirm.min.js" type="text/javascript"></script>
<!-- 下拉列表 js -->
<script src="${ctx}/static/js/bootstrap-select/bootstrap-select.min.js" type="text/javascript"></script>
<!-- 下拉列表 中文 js -->
<script src="${ctx}/static/js/bootstrap-select/i18n/defaults-zh_CN.min.js" type="text/javascript"></script>
<!-- 消息 js -->
<script src="${ctx}/static/js/bootstrap-notify.min.js" type="text/javascript"></script>
<!-- 加载 js -->
<script src="${ctx}/static/js/lyear-loading.js" type="text/javascript"></script>
<!-- 表格 js -->
<script src="${ctx}/static/js/bootstrap-table/bootstrap-table.min.js" type="text/javascript"></script>
<!-- 表格 中文 js -->
<script src="${ctx}/static/js/bootstrap-table/locale/bootstrap-table-zh-CN.min.js" type="text/javascript"></script>
<!-- 表格 导出 js -->
<script type="text/javascript"
        src="${ctx}/static/js/bootstrap-table/extensions/export/bootstrap-table-export.min.js"></script>
<!-- 表格导出插件 js -->
<script type="text/javascript" src="${ctx}/static/js/tableexport.jquery.plugin-master/tableExport.js"></script>
<!--日期选择器js-->
<script type="text/javascript" src="${ctx}/static/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script type="text/javascript"
        src="${ctx}/static/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<!--时间日期选择器js-->
<script type="text/javascript" src="${ctx}/static/js/momentjs/moment.min.js"></script>
<script type="text/javascript" src="${ctx}/static/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="${ctx}/static/js/momentjs/locale/zh-cn.min.js"></script>
<!-- 主要的 js -->
<script src="${ctx}/static/js/main.min.js" type="text/javascript"></script>

<!-- 公共方法封装 -->
<script type="text/javascript">
    // 关闭ajax缓存
    $(function () {
        $.ajaxSetup({
            cache: false
        });
    });


    // 当前时间
    function getFormatDate() {
        let date = new Date();
        let month = date.getMonth() + 1;
        let strDate = date.getDate();
        let hours = date.getHours();
        let minutes = date.getMinutes();
        let seconds = date.getSeconds();
        if (month >= 1 && month <= 9) {
            month = "0" + month;
        }
        if (strDate >= 0 && strDate <= 9) {
            strDate = "0" + strDate;
        }
        if (hours >= 0 && hours <= 9) {
            hours = "0" + hours;
        }
        if (minutes >= 0 && minutes <= 9) {
            minutes = "0" + minutes;
        }
        if (seconds >= 0 && seconds <= 9) {
            seconds = "0" + seconds;
        }
        return date.getFullYear() + "-" + month + "-" + strDate
            + " " + date.getHours() + ":" + minutes + ":" + seconds;
    }


    // 消息弹框
    function notify(icon, msg, type) {
        $.notify({
            icon: icon,
            message: msg
        }, {
            element: 'body',
            z_index: 2000,
            type: type,
            placement: {
                from: 'top',
                align: 'center'
            },
            delay: 3000
        });
    }
</script>


